﻿namespace DayDayUp.Core.Domain.Users
{
    public  partial class SystemUserRoleNames
    {
        public static string Administrators { get { return "Administrators"; } }

        public static string Registered { get { return "Registered"; } }

        public static string Guests { get { return "Guests"; } }



   
    }

    public static class SystemUserRoleNamesExtension
    {
        public static string SystemNameDesc(this string roleName)
        {
            if (roleName == SystemUserRoleNames.Administrators)
            {
                return "管理员";
            }
            else if (roleName == SystemUserRoleNames.Registered)
            {
                return "已注册";
            }
            else if (roleName == SystemUserRoleNames.Guests)
            {
                return "临时访问者";
            }
           
            return string.Empty;
        }

    }
}